App.Api.factory('Api.Delnote', [function () {
			/**
* Usuwa notatkę
* @class delnote
*/
function delnote(){
	/**
	* delnote
	* @property oper
	* @private 
	*/
	var oper = 'delnote',

	/**
	*  właściciel notatki lub dowolny admin
	* @property user 
	* @private 
	*/
	user ,

	/**
	*  hasło tego użytkownika
	* @property pass 
	* @private 
	*/
	pass ,

	/**
	*  id do usunięcia
	* @property id 
	* @private 
	*/
	id ,

	/**
	*  id do usunięcia
	* @property id 
	* @private 
	*/
	id ,
	that = this;


	function getOper(noper){
		return oper;
	}
	function getUser(nuser){
		return user ;
	}
	function getPass(npass){
		return pass ;
	}
	function getId(nid){
		return id ;
	}

	function setUser(nuser){
		user  = nuser ;
	}
	function setPass(npass){
		pass  = npass ;
	}
	function setId(nid){
		id  = nid ;
	}

	function toObject(){
		return{
			oper: oper,
			user : user ,
			pass : pass ,
			id : id,
			nid: id
		};
	}

	/**
 	* konstruktor
 	*
   	* @constructor         
  	* @method construct    
  	* @public              
 	*/
	(function delnote(){
		that.getOper = getOper;
		that.getUser = getUser;
		that.getPass = getPass;
		that.getId = getId;
		that.setUser = setUser;
		that.setPass = setPass;
		that.setId = setId;
		that.toObject = toObject;
	})();
}


delnote.fromObject = function (obj){
		var object = new delnote();
		object.setUser(obj.user);
		object.setPass(obj.pass);
		object.setId(obj.id);
		return object;
	}

			return delnote;
		}]);